package com.gxy.learn.design.model.construction.birdge;

/**
 * @description: 桥连接模式
 * @author: gaoxueyong
 * @Date: 2022/11/7 20:14
 */
public class Client {
    public static void main(String[] args) {
        OpratingSystem system = new Mac(new AviFile());
        system.play("回家的诱惑.avi");
        system = new Mac(new RmvbFile());
        system.play("战狼.rmvb");

        system = new Windows(new AviFile());
        system.play("老师.avi");
        system = new Windows(new RmvbFile());
        system.play("战狼2.rmvb");
    }
}
